﻿namespace IOA.MES.DataAccess.VModel
{
    /// <summary>
    /// 手动降级纪录
    /// </summary>
    public class VManuallyDowngradeRecord : BaseVModel
    {
        private string _workshopCode = string.Empty;
        private string _workshopName = string.Empty;
        private string _orderNo = string.Empty;
        private string _workOrderNo = string.Empty;
        private string _barCode = string.Empty;
        private string _oldNameplateModel = string.Empty;
        private string _oldCurrent = string.Empty;
        private string _newNameplateModel = string.Empty;
        private string _newCurrent = string.Empty;

        #region Public Property

        ///<Summary>
        /// 车间代码
        ///</Summary>
        public string WorkshopCode
        {
            get { return string.IsNullOrWhiteSpace(_workshopCode) ? string.Empty : _workshopCode; }
            set { _workshopCode = value; }
        }

        ///<Summary>
        /// 车间名称
        ///</Summary>
        public string WorkshopName
        {
            get { return string.IsNullOrWhiteSpace(_workshopName) ? string.Empty : _workshopName; }
            set { _workshopName = value; }
        }

        ///<Summary>
        /// 订单号
        ///</Summary>
        public string OrderNo
        {
            get { return string.IsNullOrWhiteSpace(_orderNo) ? string.Empty : _orderNo; }
            set { _orderNo = value; }
        }

        ///<Summary>
        /// 工单号
        ///</Summary>
        public string WorkOrderNo
        {
            get { return string.IsNullOrWhiteSpace(_workOrderNo) ? string.Empty : _workOrderNo; }
            set { _workOrderNo = value; }
        }

        ///<Summary>
        /// 组件条码
        ///</Summary>
        public string BarCode
        {
            get { return string.IsNullOrWhiteSpace(_barCode) ? string.Empty : _barCode; }
            set { _barCode = value; }
        }

        ///<Summary>
        /// 老铭牌
        ///</Summary>
        public string OldNameplateModel
        {
            get { return string.IsNullOrWhiteSpace(_oldNameplateModel) ? string.Empty : _oldNameplateModel; }
            set { _oldNameplateModel = value; }
        }

        ///<Summary>
        /// 老功率
        ///</Summary>
        public int OldPower { get; set; }

        ///<Summary>
        /// 老电流
        ///</Summary>
        public string OldCurrent
        {
            get { return string.IsNullOrWhiteSpace(_oldCurrent) ? string.Empty : _oldCurrent; }
            set { _oldCurrent = value; }
        }

        ///<Summary>
        /// 新铭牌
        ///</Summary>
        public string NewNameplateModel
        {
            get { return string.IsNullOrWhiteSpace(_newNameplateModel) ? string.Empty : _newNameplateModel; }
            set { _newNameplateModel = value; }
        }

        ///<Summary>
        /// 新功率
        ///</Summary>
        public int NewPower { get; set; }

        ///<Summary>
        /// 新电流
        ///</Summary>
        public string NewCurrent
        {
            get { return string.IsNullOrWhiteSpace(_newCurrent) ? string.Empty : _newCurrent; }
            set { _newCurrent = value; }
        }

        ///<Summary>
        /// Isc
        ///</Summary>
        public decimal? Isc { get; set; }

        ///<Summary>
        /// Voc
        ///</Summary>
        public decimal? Voc { get; set; }

        ///<Summary>
        /// Vm
        ///</Summary>
        public decimal? Vm { get; set; }

        ///<Summary>
        /// Im
        ///</Summary>
        public decimal? Im { get; set; }

        ///<Summary>
        /// FF
        ///</Summary>
        public decimal? FF { get; set; }

        ///<Summary>
        /// Pmax
        ///</Summary>
        public decimal? Pmax { get; set; }
        #endregion
    }
}
